package com.example.demo.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.common.JsonResult;
import com.example.demo.entity.EmployeeEntity;
import com.example.demo.service.EmployeeInfoLYNService;

/**
 * EmployeeInfo Controller
 *
 */
@RestController
public class EmployeeInfoLYNController {

	@Resource
	private EmployeeInfoLYNService employeeInfoLYNService;

	/**
	 * select employee info
	 * 
	 * @param number
	 * @return JsonResult
	 */
	@GetMapping("/bff/employeeInfo/lyn/{number}")
	public JsonResult selectByNumber(@PathVariable String number) {
		EmployeeEntity employee = employeeInfoLYNService.selectByNumber(number);
		return JsonResult.success(employee);
	}
}
